﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace Model_Layer
{
    public class Customer : Person
    {
        private int phoneNo;
        private string email;
        private int creditCardInfo;

        public Customer()
        {
        }

        public Customer(int phoneNo, int creditCardInfo, string email, string fname, string lname, string paddress, string dateOfBirth, string gender, bool ispassFlag, bool isCusFlag) :
            base(fname, lname, paddress, dateOfBirth, gender, ispassFlag, isCusFlag)
        {

        }

        [DataMember]
        public int CreditCardInfo
        {
            get { return creditCardInfo; }
            set { creditCardInfo = value; }
        }
        [DataMember]
        public int PhoneNo
        {
            get { return phoneNo; }
            set { phoneNo = value; }
        }
        [DataMember]
        public string Email
        {
            get { return email; }
            set { email = value; }
        }
    }
}

